package com.example.jetcache_demo.controller;

import com.example.jetcache_demo.service.TestService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Author lihw
 * @Date 2024/7/18 17:58
 */
@RestController
@RequestMapping("test")
public class TestController {

    private final TestService testService;

    public TestController(TestService testService) {
        this.testService = testService;
    }

    @GetMapping("msg_ttl")
    public String msg_ttl(String userId) {

        return testService.ttlMsg(userId);
    }
}
